/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-08-30 12:42:08
 * @LastEditTime: 2021-08-30 12:42:09
 * @LastEditors: changqing
 * @Usage: 
 */
var { timer, interval,range } = require('rxjs'); 
var {takeLast} = require('rxjs/operators');
range(1, 5).pipe(
  takeLast(3)
).subscribe(
  data => console.log(`takeLast 示範: ${data}`)
);
// 3 4 5